package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingGradeMapper {

    /**
     * 查询所有护理等级
     * @return
     */
    @Select("select * from nursing_level")
    List<NursingLevelVo> findAll();

    /**
     * 分页查询护理等级
     * @param name
     * @param status
     * @return
     */
    Page<NursingLevelVo> selectPage(String name, Integer status);

    /**
     * 新增护理等级
     * @param nursingGrade
     */
    void insert(NursingLevel nursingGrade);
}
